/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.dao.api;

import java.util.List;
import org.cx1.model.Photo;

/**
 *
 * @author tina
 */
public interface IPhotoDao {
    
    public String add(Photo photo);
    
    public int update(Photo photo);
    
    public Photo getById(String id);
    
    public List<Photo> getAll();
    
    public int deleteById(String id);
    
    
    public List<String> getPlacePhotoIds(String placeId);
    
    public boolean addPlacePhoto(String placeId, String photoId);
    
    public int deletePlacePhoto(String placeId, String photoId);
    
        
    public List<String> getListingPhotoIds(String listingId);
    
    public boolean addListingPhoto(String listingId, String photoId);
    
    public int deleteListingPhoto(String listingId, String photoId);
    
    
    public List<String> getBlogPhotoIds(String blogId);
    
    public boolean addBlogPhoto(String blogId, String photoId);
    
    public int deleteBlogPhoto(String blogId, String photoId);
    
}
